<template>
  <div class="about">
    <div class="swiper-container">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
            <img
              style="width: 520px; height: 280px"
              src="https://gw.alicdn.com/imgextra/i3/O1CN01Am8Sra21Zaice06ax_!!6000000006999-2-tps-1130-500.png_570x10000.jpg_.webp"
              alt=""
            />
          </div>
          <div class="swiper-slide">
            <img
              style="width: 520px; height: 280px"
              src="https://img.alicdn.com/simba/img/TB1lUZLJVXXXXXtXFXXSutbFXXX.jpg"
              alt=""
            />
          </div>
          <div class="swiper-slide">
            <img
              style="width: 520px; height: 280px"
              src="https://gw.alicdn.com/imgextra/i3/6000000005265/O1CN01zDmWFy1olQ2GxNqXW_!!6000000005265-0-octopus.jpg_570x10000Q75.jpg_.webp"
              alt=""
            />
          </div>
          <div class="swiper-slide">
            <img
              style="width: 520px; height: 280px"
              src="https://img.alicdn.com/imgextra/i4/6000000004047/O1CN01Y8A3Cu1flZaFyZZft_!!6000000004047-0-alimamazszw.jpg"
              alt=""
            />
          </div>
          <div class="swiper-slide">
            <img
              style="width: 520px; height: 280px"
              src="https://gw.alicdn.com/tps/TB1x2eZLVXXXXbCXVXXXXXXXXXX-1130-500.jpg_570x10000Q75.jpg_.webp"
              alt=""
            /></div
        >
      </div>
      <!-- 如果需要分页器 -->
      <div class="swiper-pagination"></div>
    </div>
  </div>
</template>

<script>
import Swiper from "swiper";
export default {
  mounted() {
    new Swiper(".swiper-container", {
     autoplay: true,
     speed:6000,
      loop: true,
      // 如果需要分页器
      pagination: ".swiper-pagination",
    
      // 如果需要滚动条
      // scrollbar: '.swiper-scrollbar',
      //如果需要自动切换海报
      // autoplay: {
      //   delay: 1000,//时间 毫秒
      //   disableOnInteraction: false,//用户操作之后是否停止自动轮播默认true
      // },
    });
  },
};
</script>

<style  scoped>
.swiper-wrapper {
  width: 520px;
  height: auto;
  margin-bottom: 30px;
}
.swiper-slide > img {
  border-radius: 10px;
}
.swiper-button-next {
  right: 40px;
}
.swiper-button-prev {
  left: 40px;
}
</style>